import {CanActivate} from '@angular/router';

export class LoginGuard implements CanActivate{
  canActivate(){
    let logined:boolean = Math.random() < 0.5;

    if (!logined) console.log('用户未登录');

    return logined;
  }

}
